package com.example.manage.service.imp;

import com.example.manage.controller.data.ReturnData;
import com.example.manage.Repository.TeamRepository;
import com.example.manage.service.TeamServeice;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class TeamServeiceImp implements TeamServeice {
    @Resource
    TeamRepository teamDao;
    @Override
    public ReturnData getTeam() {
        return ReturnData.ok(teamDao.findAll());
    }
}
